package com.service.scheduler.job;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import com.service.api.ApiServerManager;
import com.service.other.Logger;

public class BaiduApiGeoconvJob implements Job {

	/**
	 * Job需要一个公有的构造函数，否则Factory无法构建
	 */
	public BaiduApiGeoconvJob() {

	}

	/**
	 * 实现execute方法
	 */
	@Override
	public void execute(JobExecutionContext context)
			throws JobExecutionException {
		try {
			//JobKey jk = context.getJobDetail().getKey();
			//String jobName = jk.getName();
			//String jobGroup = jk.getGroup();
			//Logger.println("启动任务 [" + jobGroup + "].[" + jobName + "]");
			ApiServerManager.runLocationServiceThread();
			//Logger.println("任务执行完毕，下次启动时间：" + context.getNextFireTime());
		} catch (Exception e) {
			Logger.err(e);
		}
		
	}
	
}
